package com.zjs.server.comsumer.service;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(name = "server-mongodb")
public interface TestService {

    @GetMapping(value = "/test1")
    String test1();

    @GetMapping(value = "/test2/{name}")
    String test2(@PathVariable(value = "name") String name);

    @GetMapping(value = "/timeOut/{s}")
    String timeOut(@PathVariable(value = "s") int s);

    @GetMapping(value = "/timeOut/{s}")
    String timeOut1(@PathVariable(value = "s") int s);

}
